package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.E_CUSTOMER_ID;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.E_DISTRIBUTION_INFO;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.E_DISTRIBUTION_REASON;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.M_CUSTOMER_ID_MAX;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.M_DISTRIBUTION_INFO_MAX;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.M_DISTRIBUTION_REASON_MAX;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.N_CUSTOMER_ID;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.N_DISTRIBUTION_INFO;
import static org.jsola.hr.example.CrmCustomerDistributionRecordExample.N_DISTRIBUTION_REASON;

/**
 * 客户分配记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【客户分配记录表】的参数")
@Data
public class CrmCustomerDistributionRecordUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_CUSTOMER_ID, example = E_CUSTOMER_ID)
    @Length(max = 32, message = M_CUSTOMER_ID_MAX)
    private String customerId;

    @ApiModelProperty(notes = N_DISTRIBUTION_INFO, example = E_DISTRIBUTION_INFO)
    @Length(max = 100, message = M_DISTRIBUTION_INFO_MAX)
    private String distributionInfo;

    @ApiModelProperty(notes = N_DISTRIBUTION_REASON, example = E_DISTRIBUTION_REASON)
    @Length(max = 100, message = M_DISTRIBUTION_REASON_MAX)
    private String distributionReason;


}

